package com.my.redis;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 80002023 on 2016/6/13.
 */
public interface IManager<K extends Serializable, V> {

    boolean save(V record);

    boolean save(List<V> records);

    boolean update(V record);

    V get(K key);

    List<V> get(List<K> keys);

    void delete(K key);

    void delete(List<K> keys);

}
